import createCRUDService from '/common/helpers/createCRUDService';
import { reqGet,jsonPost} from '/common/helpers/request';
import { api } from './config';

/**
 * 修改状态
 * @param params
 * @param options
 * @returns {*}
 */
export async function toggleState(params, options = {}) {
  return reqGet(api.toggleStateApi, params, options);
}

/**
 * 重置密码
 * @param params
 * @param options
 * @returns {*}
 */
export async function resetPsw(params, options = {}) {
  return reqGet(api.resetPsw, params, options);
}




export default createCRUDService(api);
